package easy;

public class a1550_存在连续三个奇数的数组 {
    public boolean threeConsecutiveOdds(int[] arr) {
        int count=0;
        for (int i : arr) {
            if (i%2!=0){
                count++;
            }else {
                count=0;
            }
            if (count>=3) return true;
        }
        return false;
    }
}
